<div class="modal fade" id="admin-add-userModal" style="">
    <div class="modal-dialog">
        <form action="{{url('Admin/couponsAdmin/addCoupons')}}" method="post" enctype="multipart/form-data">
            {{ csrf_field() }}
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title" style="text-align: center">添加优惠券</h3>
                </div>
                <div class="modal-body">
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" id="type" name="type" style="border-radius: 5px">
                                <option value="-1" disabled>选择优惠券类型</option>
                                @php($coupons=config("config.coupons_type"))
                                @foreach($coupons as $k=>$v)
                                        <option value={{$k}}>{{$v}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="text" class="form-control" placeholder="名称" id="name" name="name" style="border-radius: 5px">
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="number" class="form-control" min="0" placeholder="金额" id="amount" name="amount" style="border-radius: 5px">
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="number" class="form-control" min="1" placeholder="数量" id="number" name="number" style="border-radius: 5px">
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <div class="input-group date form_datetime" id="datetimepicke3">
                                <div class="input-group-addon" style="border-radius: 5px 0 0 5px">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" class="form-control pull-right" placeholder="优惠开始时间" id="started_at"
                                       name="started_at" style="border-radius: 0 5px 5px 0 " required>
                            </div>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <div class="input-group date form_datetime" id="datetimepicke3">
                                <div class="input-group-addon" style="border-radius: 5px 0 0 5px">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" class="form-control pull-right" placeholder="优惠结束时间" id="closed_at"
                                       name="closed_at" style="border-radius: 0 5px 5px 0 " required>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                    <div class="row">
                        <div class="col-lg-8 col-md-8 col-lg-offset-2 col-md-offset-2 ">
                            <button type="submit" class="btn btn-primary" style="background-color: #0080ff;border: #0080ff;width: 100%">确定
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

